// 基于template/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IGridViewModel } from '@/core/interface/view/model';

function getModel(): IGridViewModel {
	return {
		caption: '认证日志',
		title: '认证日志表格视图',
		capPSLanguageRes: 'DE.LNAME.AUTH_LOG',
		titlePSLanguageRes: 'PAGE.TITLE.AUTH_LOG.GRIDVIEW',
		showDataInfoBar: false,
		codeName: 'auth_logGridView',
		uiEngineModel: [
			{
				name: 'newdata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
			{
				name: 'opendata',
				triggerType: 'CUSTOM',
				logicType: 'SYSUILOGIC',
				eventNames: '',
				scriptCode: ``,
				logicName: ``,
				logicTag: '',
				eventArg: '',
				eventArg2: '',
				timer: 0,
				psViewCtrlName: '',
				entityCodeName: '',
			},
		],
		ctrls: [
			{
				name: 'searchform',
				codeName: 'Default',
				controlType: 'SEARCHFORM',
			},
			{
				name: 'grid',
				codeName: 'Main',
				controlType: 'GRID',
			},
		],
		ctrlParams: {
			AUTH_LOGsearchform: {},
			AUTH_LOGgrid: {},
		},
		cssName: '',
		name: 'auth_logGridView',
		viewType: 'DEGRIDVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'AUTH_LOG',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Name',
		funcViewMode: 'MDATAVIEW',
		enableQuickSearch: true,
		expandSearchForm: false,
		newData: {
			deCodeName: 'AUTH_LOG',
			newDataViewName: 'auth_logEditView',
		},
		openData: {
			deCodeName: 'AUTH_LOG',
			openDataViewName: 'auth_logEditView',
		},
		xDataCtrlName: 'grid',
		quickSearchPlaceholder: ['日志名称'].join(','),
		useDefaultLayout: true,
		enableRowEdit: false,
		rowActiveMode: 2,
		rowEditDefault: false,
	};
}

export const model = getModel();
